package com.xujicheng.designpattern.learn.factoryMethod;

/**
 * @project:design-pattern-learn
 * @package:com.xujicheng.designpattern.learn.factoryMethod
 * @author:xujicheng
 * @date:2018/8/8
 */
public class ChicagoPizzaStore extends PizzaStore {
    @Override
    protected Pizza createPizza(String type) {
        Pizza pizza = null;
        switch (type){
            case "cheese" : pizza = new ChicagoStyleCheesePizza();
        }
        return pizza;
    }
}
